#ifndef WEATHERWINDOW_H
#define WEATHERWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include <QVector>
#include <QLabel>
#include <QNetworkAccessManager>
#include <QNetworkReply>

namespace Ui {
class WeatherWindow;
}

class WeatherWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit WeatherWindow(QWidget *parent = nullptr);
    ~WeatherWindow();
    void dateDeal();
    void initVector();
    void initWeather();
    void init();

private slots:
    void on_btn_back_clicked();
    void showTime();
    void weatherDate(QNetworkReply *reply);

private:
    Ui::WeatherWindow *ui;
    QTimer *timer;
    QVector<QLabel*> *times;
    QVector<QLabel*> *icons;
    QVector<QLabel*> *weathers;
    QVector<QLabel*> *temperatures;
    QNetworkAccessManager *manager;
};

#endif // WEATHERWINDOW_H
